package com.jankins.pat;

import java.util.Scanner;

public class Format {
    public static void main(String[] args) {
        Scanner in = new Scanner(System.in);

        int a = in.nextInt();
        int b = in.nextInt();

        System.out.println(format(a + b));
    }

    public static String format(int num) {
        boolean negative = num > 0 ? false : true;

        StringBuilder sb = new StringBuilder();
        if (!negative) num = -num;

        int i = 0;
        while(num < 0) {
            i++;
            sb.append(Math.abs(num % 10));
            if(i % 3 == 0 && num < -9) sb.append(',');
            num /= 10;
        }

        if(negative) sb.append('-');

        return sb.reverse().toString();
    }
}
